package com.java.base.exercise.current;

/**
 * @Author RenPu
 * @Date 2021/8/12 10:28
 * @Version 1.0
 * @Description:
 **/
public class DecRunnable implements Runnable {

    MyData data;

    public DecRunnable(MyData data) {
        this.data = data;
    }

    @Override
    public void run() {
        data.dec();
    }
}
